import api from './api'
//添加购物车
export function saveCart(data) {
  return api.post('/order/disheOrderCart', data, { login: false })
}
//更新购物车
export function updataCart(data) {
  return api.put('/order/disheOrderCart', data, { login: false })
}
//删除购物车
export function delCart(data) {
  return api.delete('/order/disheOrderCart/'+data)
}

//购物车
export function cartList(data) {
  return api.get('/order/disheOrderCart/appList', data, { login: false })
}

//购物车结算
export function cartListOdr(data) {
  return api.post('/order/disheOrder', data, { login: false })
}
//订单查询
export function orderList(data) {
  return api.get('/order/disheOrder/myOrderList', data, { login: false })
}
//订单删除
export function orderRemove(data) {
  return api.delete('/order/disheOrder/'+data)
}
//商户订单查询
export function orderShopList(data) {
  return api.get('/order/disheOrder/shopOrderList', data, { login: false })
}
//订单状态修改
export function cartListOdrPut(data) {
  return api.put('/order/disheOrder', data, { login: false })
}
//支付宝支付
export function redayPay(data) {
  return api.get('/ali/mobilePay', data, { login: false })
}

//小程序支付
export function redayxcxPay(data) {
  return api.get('/pay/jsapiPay', data)
}

//卡支付
export function cardxcxPay(data) {
  return api.post('/order/disheOrder/payForcard', data)
}

//待评价订单
export function dpjOrder(data) {
  return api.get('/order/disheOrder/myAppraiseOrderList', data)
}




